﻿<?xml version="1.0" encoding="utf-8" ?>
<DataLoad>
  <Connection server="http://localhost" org="vanilla" username="Administrator" password="Password123" domain="9ine"></Connection>
  <Connection server="https://contoso.api.crm.dynamics.com" org="/" username="admin@contoso.onmicrosoft.com" password="password123" domain="" deviceid="registerdeviceid" devicepassword="generatedevicepassword"></Connection>
  <Job type="Export" delimiter=",">
    <Fetch>
      <![CDATA[
        <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
          <entity name="account">
            <attribute name="name" />
            <attribute name="accountid" />
            <attribute name="createdon" />
            <order attribute="createdon" descending="true" />
            <filter type="and">
              <condition attribute="name" operator="eq" value="" />
              <condition attribute="createdon" operator="last-year" />
            </filter>
            <link-entity name="contact" from="parentcustomerid" to="accountid" alias="aa">
              <filter type="and">
                <condition attribute="fullname" operator="eq" value="" />
              </filter>
            </link-entity>
          </entity>
        </fetch>
      ]]>
    </Fetch>
    <File>contact.csv</File>
    <!--<AddReportColumns>True</AddReportColumns>-->
  </Job>
  <!--
  <Job type="Export" delimiter=",">
    <Fetch>
      <![CDATA[
        <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
          <entity name="annotation">
            <attribute name="annotationid" />
            <attribute name="subject" />
            <attribute name="notetext" />
            <attribute name="filename" />
            <attribute name="isdocument" />
            <attribute name="filesize" />
            <attribute name="objectid" />
            <attribute name="objecttypecode" />
            <attribute name="documentbody" />
            <order attribute="subject" descending="false" />
          </entity>
        </fetch>
      ]]>
    </Fetch>
    <File>ouputfile.csv</File>
  </Job>
  -->
  <!--
  <Job type="Import" delimiter=",">
    <File>ouputfile.csv</File>
    <Entity>annotation</Entity>
  </Job>
  -->
  <!--
  <Job type="NN" delimiter=",">
    <File>Lead Product.csv</File>
    <Entity1>lead</Entity1>
    <Entity2>product</Entity2>
    <RelationshipName>adx_lead_product</RelationshipName>
  </Job>
  -->
</DataLoad>